﻿// -------------------------------------------------------------------------
//    @FileName         :    NFServiceMisc.cpp
//    @Author           :    gaoyi
//    @Date             :    2025/1/2
//    @Email            :    445267987@qq.com
//    @Module           :    NFServiceMisc
//
// -------------------------------------------------------------------------

#include "NFServiceMisc.h"
#include "NFMiscPart.h"
#include "NFPlayer.h"

int NFServiceMisc::SetSecData(NFPlayer* pPlayer, const char* data)
{
    CHECK_NULL(0, pPlayer);
    CHECK_NULL(0, data);
    NFMiscPart* pMiscPart = pPlayer->GetPart<NFMiscPart>(PART_MISC);
    CHECK_NULL(pPlayer->GetRoleID(), pMiscPart);

    pMiscPart->SetSecData(data);
    return 0;
}

